<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
    <title>Gift Hotel</title>
</h:head>

<h:body onload="#{GiftManaged.searchById()}">
	<h:form>
	<p:panelGrid columns="2">
		<p:outputLabel value = "Name:"/>
		<h:outputText value="#{GiftManaged.hDTO.name}"/>
		<p:outputLabel value = "Available Place:"/>
		<h:outputText value="#{GiftManaged.hDTO.availablePlaces}"/>
		<p:outputLabel value = "Description:"/>
		<h:outputText value="#{GiftManaged.hDTO.description}"/>
		<p:outputLabel value = "Website:"/>
		<h:outputText value="#{GiftManaged.hDTO.website}"/>
		<p:outputLabel value = "EMail:"/>
		<h:outputText value="#{GiftManaged.hDTO.email}"/>
		<p:outputLabel value = "City:"/>
		<h:outputText value="#{GiftManaged.hDTO.city}"/>
		<p:outputLabel value = "Stars:"/>
		<h:outputText value="#{GiftManaged.hDTO.stars}"/>
		<p:outputLabel value = "Address:"/>
		<h:outputText value="#{GiftManaged.hDTO.address}"/>
		<p:outputLabel value = "Phone:"/>
		<h:outputText value="#{GiftManaged.hDTO.phone}"/>
		<p:outputLabel value = "Price:"/>
		<h:outputText value="#{GiftManaged.hDTO.price}"/> 
	</p:panelGrid> 
	<p:commandButton id="hotel" value="Confirm" action="#{GiftManaged.giftHotel()}" ajax="false" />
	<p:messages id="messages" showDetail="true" autoUpdate="true" closable="true" /> 
	</h:form>
</h:body>
</html>